<?php

namespace app\api\model;

use app\common\model\BaseModel;

class UserRechargeLog extends BaseModel
{
    public static function getByOrderNo($orderNo)
    {
        return self::where('order_no', $orderNo)->find();
    }

    public static function getByUserId($userId, $size = 20)
    {
        return self::where('user_id', $userId)->order('createtime desc')->paginate($size);
    }

}
